﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="manage_survey_setItem" Codebehind="VoteItem.aspx.cs" %>

<%@ Register Src="~/controls/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>
<%@ Import Namespace="System.Data" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../../sysImages/<%Response.Write(NetCMS.Config.UIConfig.CssPath()); %>/css/css.css"
        rel="stylesheet" type="text/css" />

    <script language="JavaScript" type="text/javascript" src="../../configuration/js/Prototype.js"></script>

    <script language="JavaScript" type="text/javascript" src="../../configuration/js/Public.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" class="toptable">
            <tr>
                <td width="57%" class="sysmain_navi" style="padding-left: 14px" height="30">
                    调查管理</td>
                <td width="43%" class="topnavichar" style="padding-left: 14px">
                    <div align="left">
                        位置导航：<a href="../main.aspx" target="sys_main" class="list_link">首页</a><img alt=""
                            src="../../sysImages/folder/navidot.gif" border="0" />调查管理</div>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" class="Navitable">
            <tr class="menulist">
                <td height="18" style="width:45%;padding-left:14px" colspan="2">
                    <div align="left">
                        <label id="param_id" runat="server" />
                        <a href="setClass.aspx" class="menulist">投票分类设置</a>&nbsp;┊&nbsp;<a href="VoteTopic.aspx"
                            class="menulist">投票主题设置</a>&nbsp;┊&nbsp;<a href="VoteItem.aspx" class="menulist">投票选项设置</a>&nbsp;┊&nbsp;<a
                                href="ManageVote.aspx" class="menulist">投票情况管理</a>
                    </div>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1">
            <tr>
                <td height="18" style="width: 45%" colspan="2">
                    <div align="right">
                        <a href="Item_Add.aspx" class="topnavichar">新增选项</a> |
                        <asp:LinkButton ID="DelP" runat="server" CssClass="topnavichar" OnClientClick="{if(confirm('确认删除所选信息吗?')){return true;}return false;}"
                            OnClick="DelP_Click">批量删除</asp:LinkButton>
                        |
                        <asp:LinkButton ID="DelAll" runat="server" CssClass="topnavichar" OnClientClick="{if(confirm('确认删除全部信息吗?')){return true;}return false;}"
                            OnClick="DelAll_Click">删除全部</asp:LinkButton></div>
                </td>
            </tr>
        </table>
        <asp:Repeater ID="DataList1" runat="server">
            <HeaderTemplate>
                <table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" class="table">
                    <tr class="TR_BG">
                        <td align="center" class="sys_topBg">
                            选项描述</td>
                        <td align="center" class="sys_topBg">
                            所属主题</td>
                        <td align="center" class="sys_topBg">
                            选项模式</td>
                        <td align="center" class="sys_topBg">
                            图片位置</td>
                        <td align="center" class="sys_topBg">
                            显示颜色</td>
                        <td align="center" class="sys_topBg">
                            票数</td>
                        <td align="center" class="sys_topBg">
                            操作
                            <input type="checkbox" id="vote_checkbox" value="-1" name="vote_checkbox" onclick="javascript:return selectAll(this.form,this.checked);" /></td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="TR_BG_list">
                    <td>
                        <a href="Item_Add.aspx?&iid=<%# DataBinder.Eval(Container.DataItem, "IID")%>" class="list_link"><%# DataBinder.Eval(Container.DataItem, "ItemName")%></a>
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem, "Title")%>
                    </td>
                    <td align="center">
                        <%# GetMode(DataBinder.Eval(Container.DataItem, "ItemMode"))%>
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem, "PicSrc")%>
                    </td>
                    <td align="center" style="background-color: #<%# DataBinder.Eval(Container.DataItem, "DisColor")%>">
                        <%# DataBinder.Eval(Container.DataItem, "DisColor")%>
                    </td>
                    <td align="center">
                        <%# DataBinder.Eval(Container.DataItem, "VoteCount")%>
                    </td>
                    <td align="center">
                        <a href="Item_Add.aspx?&iid=<%# DataBinder.Eval(Container.DataItem, "IID")%>"  class="list_link" title="修改此项"><img src="../../sysImages/<%# NetCMS.Config.UIConfig.CssPath()%>/sysico/edit.gif" border="0" alt="修改此项" /></a><a href="VoteItem.aspx?type=delone&id=<%# DataBinder.Eval(Container.DataItem, "IID")%>"  class="list_link" title="删除此项" onclick="{if(confirm('确认删除吗？')){return true;}return false;}"><img src="../../sysImages/<%# NetCMS.Config.UIConfig.CssPath() %>/sysico/del.gif" border="0" alt="删除此项" /></a><input type="checkbox" name="vote_checkbox" id="vote_checkbox" value="<%# DataBinder.Eval(Container.DataItem, "IID")%>"/>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <div align="right" style="width: 98%">
            <uc1:PageNavigator ID="PageNavigator1" runat="server" />
        </div>
        <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
            <tr class="TR_BG_list">
                <td class="list_link">
                    选项查询: &nbsp; 关键字:
                    <asp:TextBox runat="server" ID="KeyWord" size="15" CssClass="form" />
                    &nbsp;&nbsp; 查询类型:
                    <asp:DropDownList ID="DdlKwdType" runat="server" CssClass="form">
                        <asp:ListItem Value="choose" Text="请选择" />
                        <asp:ListItem Value="title" Text="所属主题" />
                        <asp:ListItem Value="ItemNamee" Text="选项描述" />
                        <asp:ListItem Value="PicSrcc" Text="图片位置" />
                        <asp:ListItem Value="DisColorr" Text="显示颜色" />
                        <asp:ListItem Value="VoteCountt" Text="当前票数" />
                        <asp:ListItem Value="ItemDetaill" Text="详细说明" />
                    </asp:DropDownList>
                    &nbsp;&nbsp;
                    <asp:Button runat="server" ID="BtnSearch" Text=" 查询 " CssClass="form" OnClick="BtnSearch_Click" />
                    &nbsp;<span class="helpstyle" style="cursor: help;" title="点击查看帮助" onclick="Help('H_searchItem_0001',this)">帮助</span>
                </td>
            </tr>
        </table>
    </form>
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="copyright_bg"
        style="height: 76px">
        <tr>
            <td align="center">
                <label id="copyright" runat="server" />
            </td>
        </tr>
    </table>
</body>
</html>
